#include "../../../xcom/xall.hpp"

int main(int argc, char* argv[])
{
    const char* ip = argv[1];
    port_t port = atoi(argv[2]);
    
    xsock s;
    bool ret = s.tcp_create();
    X_CHECK(ret,-1);

    ret = s.xbind(ip,port);
    X_CHECK(ret,-1);

    ret = s.xlisten();
    X_CHECK(ret,-1);
    printf("ok");

    return 0;
}